@extends('simple-pc.views.layout')
@section('content')
    <link rel="stylesheet" href="/themes/simple-pc/static/css/detail.css">
    <div class="banner" style="background-image: url('{{$article_info['category']['thumb']}}')">
    </div>
    <div class="news-con clearfix">
        <div class="news-cat-con">
            <ul>
                @foreach ($article_info['category'] as $item)
                    <li class="@if ($item['id']==$cid) news-cat-active @endif">
                        <a href="/article/list?cid={{$item['id']}}">
                            {{$item['name']}}
                        </a>
                    </li>
                @endforeach
            </ul>
        </div>
        <div class="news-detail-con">
            <div class="news-detail-title">{{$article_info['title']}}</div>
            <div class="news-detail-time">发布时间：{{date('Y-m-d H:i:s',$article_info['publish_time'])}}</div>
            <div class="news-detail-content">{!! $article_info['content'] !!}</div>
        </div>
    </div>
@endsection